package com.slz3.business.module.memberManagement.Feedback.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.memberManagement.Feedback.domain.Feedback;
import com.slz3.business.module.memberManagement.Feedback.domain.FeedbackCondition;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class FeedbackResAtomic extends FeedbackResExecutor {

    public Mono<ServerResponse> add_$FeedbackUpdateLock(ServerRequest req, Feedback Feedback) {
        return FeedbackResSafeValid.add(req, Feedback) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, Feedback);
    }

    public Mono<ServerResponse> delete_$FeedbackUpdateLock(ServerRequest req, FeedbackCondition FeedbackCondition) {
        return FeedbackResSafeValid.delete(req, FeedbackCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$FeedbackUpdateLock(ServerRequest req, Feedback Feedback) {
        return FeedbackResSafeValid.modify(req, Feedback) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, Feedback);
    }

    public Mono<ServerResponse> info_$FeedbackUpdateLock(ServerRequest req) {
        return FeedbackResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$FeedbackUpdateLock(ServerRequest req, FeedbackCondition FeedbackCondition) {
        return FeedbackResSafeValid.auditSubmit(req, FeedbackCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$FeedbackUpdateLock(ServerRequest req, FeedbackCondition FeedbackCondition) {
        return FeedbackResSafeValid.audit(req, FeedbackCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$FeedbackUpdateLock(ServerRequest req, FeedbackCondition FeedbackCondition) {
        return FeedbackResSafeValid.auditReject(req, FeedbackCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$FeedbackUpdateLock(ServerRequest req, FeedbackCondition FeedbackCondition) {
        return FeedbackResSafeValid.usingEnable(req, FeedbackCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$FeedbackUpdateLock(ServerRequest req, FeedbackCondition FeedbackCondition) {
        return FeedbackResSafeValid.usingDisable(req, FeedbackCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
